<?php
include_once '../../website_define.php';

return array(
    // This path may be different. You can probably get it from `config/main.php`.
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'Cron',

    'preload'=>array('log'),

	'import'=>array(
		'application.models.*',
		'application.components.*',
                'application.extensions.EPhpThumb.*',
                'application.extensions.yiisortablemodel.models.*',
                'application.extensions.yiisortablemodel.behaviors.*',
                'application.extensions.yii-mail.*',
		// 'ext.mongodbext.*'
	),
    // We'll log cron messages to the separate files
    'components'=>array(
        'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                array(
                    'class'=>'CFileLogRoute',
                    'logFile'=>'cron.log',
                    'levels'=>'error, warning',
                ),
                array(
                    'class'=>'CFileLogRoute',
                    'logFile'=>'cron_trace.log',
                    'levels'=>'trace',
                ),
            ),
        ),

        // Your DB connection
        'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=db_pci',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
//            'enableProfiling'=>true,
//            'enableParamLogging'=>true,
        ),

        'mail' => array(
            'class' => 'application.extensions.yii-mail.YiiMail',
            'transportType' => 'smtp', /// case sensitive!
            'transportOptions' => array(
                'host' => 'mail.dulichhaivan.vn',
                'username' => 'info@dulichhaivan.vn',
                'password' => '123456',
                'port' => '465',
                'encryption' => 'ssl',
                'timeout' => '120',
            ),
            'viewPath' => 'application.mail',
            'logging' => true,
            'dryRun' => false
        ),
        

        'request' => array(
            'hostInfo' => '127.0.0.1',
            'baseUrl' => ROOT,
            'scriptUrl' => '',
        ),

        'setting' => array(
         'class' => 'application.extensions.MyConfig.MyConfig',
         'cacheId' => null,
         'useCache' => false,
         'cacheTime' => 0,
         'tableName' => 'settings',
         'createTable' => false,
         'loadDbItems' => true,
         'serializeValues' => true,
         'configFile' => '',
     ),
    ),
);